package com.lang.beans;

import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private String pwd;
	private String name;
	private String tel;
	private String email;
	private Integer level;
	private Set parcels = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String pwd, String name, String tel, String email, Integer level) {
		this.pwd = pwd;
		this.name = name;
		this.tel = tel;
		this.email = email;
		this.level = level;
	}

	/** full constructor */
	public User(String pwd, String name, String tel, String email,
			Integer level, Set parcels) {
		this.pwd = pwd;
		this.name = name;
		this.tel = tel;
		this.email = email;
		this.level = level;
		this.parcels = parcels;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Set getParcels() {
		return this.parcels;
	}

	public void setParcels(Set parcels) {
		this.parcels = parcels;
	}

}